<%-- 
    Document   : liste-commandes
    Created on : 6 juin 2012, 15:23:05
    Author     : TaKeO
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/style.css" />
        <title>Liste des commandes</title>
    </head>
    <body>
    <div id="container">
        <div id="header">
            <%@include file="template/header.jsp" %>
        </div>
        <div id="center-layout">
            <div id="content">
                <h1>Liste des commandes</h1>
                
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th>Id</th>
                            <th>Libellé</th>
                            <th>Serveur</th>
                            <th>Table</th>
                            <th>Détails</th>
                        </tr> 
                    </thead>
                    <tbody>
                        <c:forEach items="${commandes}" var="commande">
                            <tr> 
                                <td><c:out value="${commande.id_commande} " /></td>
                                <td><c:out value="${commande.libelle}" /></td>
                                <td><c:out value="${commande.serveur.nom}" /> <c:out value="${commande.serveur.prenom}" /></td>
                                <td><c:out value="${commande.tableResto.nom}" /></td>
                                <td><a href="detail-commande?id=<c:out value="${commande.id_commande}" />">Détails</a></td>
                            </tr>
                        </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
            <div id="right-layout">

            </div>
            <div id="left-layout">
                <%@include file="template/left-layout.jsp" %>
            </div>
    </div>
    </body>
</html>
